﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using MonopolyNOHI2015;

namespace MonopolyTests
{
    [TestClass]
    public class BankTest
    {
        [TestMethod]
        public void TestOf32HuizenGoedAaangemaaktWorden()
        {
            var heRaBank = new Bank();
            Assert.AreEqual(32, heRaBank._aantalHuizen());
        }

        [TestMethod]
        public void TestOf12HotelsGoedAaangemaaktWorden()
        {
            var heRaBank = new Bank();
            Assert.AreEqual(12, heRaBank._aantalHotels());
        }

        [TestMethod]
        public void TestOfSalarisBetalenHetSaldoVanSpelerVan850Naar1050Ophoogt()
        {
            var heRaBank = new Bank();
            var spelerHerman = new Speler("Herman", 850, new Bord());
            heRaBank.BetaalSalaris(spelerHerman);
            Assert.AreEqual(1050, spelerHerman.GetSaldo());
        }
    }
}
